package com.chenglai.shop.controller;

import com.chenglai.shop.service.ShopService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 类描述：
 *
 * @author rjh
 * @date 2023/11/10 15:10
 */
@RestController
@RequestMapping("/shop/")
public class ShopController {
    @Resource
    private ShopService shopService;

    @GetMapping("list")
    @ResponseBody
    public String queryGoodsInfoList(){
        return shopService.queryGoodsInfoList();
    }

    @GetMapping("detail")
    @ResponseBody
    public String getShopInfoByShopId(Integer shopId){
        return shopService.getShopInfoByShopId(shopId);
    }


}
